Script: --on windowEvent wdID,wdName,objNo,objName,objValue¬¬if objValue="Open" then¬ global media ¬ if media = "Blackboard" then¬ put "i3_Name:PrimPap" & Return after x¬ else¬ put "i3_Name:Chlkbrd" & Return after x¬ end if¬ ¬ global theTool¬ if theTool = "browse" then¬ put "i2_Name:Pointer" & Return after x¬ else¬ put "i2_Name:Writer" & Return after x¬ end if¬ ¬ global lang¬ put lang & "_Hilite:True" & Return after x¬ ¬ global snd¬ if snd is true then ¬ put "i12_Name:Habla"& Return after x¬ else¬ put "i12_Name:Calla"& Return after x¬ end if¬ ¬ put the short name of this card into tc¬ get i11_Text of window wdName¬ repeat with kk = 1 to (the number of lines of it)¬ if line kk of it = tc then¬ put kk into jj¬ exit repeat¬ end if¬ end repeat¬ if jj <> empty then¬ put "i11_Selection:"&jj & Return after x¬ end if¬ ¬ set the properties of window wdName to x¬ ¬else if objValue="Close" then ¬ ¬else if objValue="Suspend" then ¬ ¬else if objValue="Resume" then ¬ ¬else if objValue="CloseBox" then ¬ ¬else if objValue="ZoomBox" then ¬ ¬else if objValue="GrowBox" then ¬ ¬else if objValue="TitleBar" then ¬ ¬end if¬¬--end windowEvent¬¬¬
Params: i11_Text¬i11_Selection
ItemType: PICT
Rect: 3,2,206,96
Name: Teclado
Grid: 6,5
Logic: Push
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬put false into SD¬if the shiftKey is down then put true into SD¬get i1_selection of window wdName¬if it < 27 then¬ if SD then¬ letter (numtoChar(64+it))¬ else¬ letter (numtoChar(96+it))¬ end if¬else if it < 29 then¬ letter " "¬else¬ doAWord¬end if¬--end mouseUp
ItemType: ICON
Rect: 211,2,243,34
Name: Pointer
Logic: Push
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬get i2_Name of window wdName¬if it is "Pointer" then¬ set i2_Name of window wdName to "Writer"¬else¬ set i2_Name of window wdName to "Pointer"¬end if¬toggleTool¬--end mouseUp
ItemType: ICON
Rect: 244,2,276,34
Name: PrimPap
Logic: Push
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬get i3_Name of window wdName¬if it is "PrimPap" then¬ set i3_Name of window wdName to "Chlkbrd"¬else¬ set i3_Name of window wdName to "PrimPap"¬end if¬toggleMedia¬--end mouseUp
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬get i11_selection of window wdName¬put it into ddd¬get i11_Text of window wdName¬put line ddd of it into thecd¬if not (there is a cd thecd) then¬ answer ("No such alphabet")¬else¬ go cd thecd¬end if¬¬--end mouseUp
ItemType: ICON
Rect: 277,36,309,68
Name: Habla
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬get i12_Name of window wdName¬global snd¬if it is "Habla" then¬ set i12_Name of window wdName to "Calla"¬ put false into snd¬else¬ set i12_Name of window wdName to "Habla"¬ put true into snd¬end if¬--end mouseUp
ItemType: RAD
Rect: 313,47,383,63
BlackColor: 0,0,13107
WhiteColor: -1,-13108,-1
Name: English
Hilite: TRUE
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global lang,langstack¬if langstack is in the stacksInUse then stop using stack langstack¬put "Letters" into langstack¬put "English" into lang¬start using stack langstack¬--end mouseUp
ItemType: RAD
Rect: 313,64,387,80
BlackColor: 0,0,13107
WhiteColor: -1,-13108,-13108
Name: Spanish
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global lang,langstack¬if langstack is in the stacksInUse then stop using stack langstack¬put "Abecedario" into langstack¬put "Spanish" into lang¬start using stack langstack¬--end mouseUp